package com.naiterui.ehp.bp.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

/**
 * @Description 患者备注信息表

 * @version 2015-12-1 下午15:22:19 by 刘德龙
 */
@Entity
@Table(name = "dr_patient_remarkname")
public class DrPatientRemarkname implements Serializable {
    /**
     * 字段或域定义：<code>serialVersionUID</code>
     */
    private static final long serialVersionUID = 1640656718382443762L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    private Long id;

    @Column(name = "doctor_id", nullable = false)
    private Long doctorId;

    @Column(name = "patient_id", nullable = false)
    private Long patientId;

    /** 患者姓名（原备注名） */
    @Column(name = "remark_name")
    private String remarkName;

    @Column(name = "created_at")
    private Date createdAt;

    @Column(name = "changed_at")
    private Date changedAt;

    /** 性别：0.女 1.男 2.未知 */
    @Column(name = "gender", columnDefinition = "bit", length = 1)
    private Integer gender;

    /** 年龄 */
    @Column(name = "age")
    private Integer age;

    /** 手机 */
    @Column(name = "phone")
    private String phone;

    /** 地址 */
    @Column(name = "address")
    private String address;

    /** 医生是否编辑过患者资料：0.未编辑 1.编辑过 */
    @Column(name = "edited", columnDefinition = "bit", length = 1)
    private Integer edited;

    /** 创建人 */
    @Column(name = "created_by")
    private String createdBy;

    /** 修改人 */
    @Column(name = "changed_by")
    private String changedBy;

    @Version
    private Integer version;

    /** 是否编辑过：0.否 */
    public static final Integer EDITED_FALSE = 0;
    /** 是否编辑过：1.是 */
    public static final Integer EDITED_TRUE = 1;

    public DrPatientRemarkname() {
    }

    public DrPatientRemarkname(Long doctorId, Long patientId) {
        this.doctorId = doctorId;
        this.patientId = patientId;
    }

    public DrPatientRemarkname(Long doctorId, Long patientId, String remarkName, Date createdAt,
            Date changedAt) {
        this.doctorId = doctorId;
        this.patientId = patientId;
        this.remarkName = remarkName;
        this.createdAt = createdAt;
        this.changedAt = changedAt;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDoctorId() {
        return this.doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public Long getPatientId() {
        return this.patientId;
    }

    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }

    public String getRemarkName() {
        return this.remarkName;
    }

    public void setRemarkName(String remarkName) {
        this.remarkName = remarkName;
    }

    public Date getCreatedAt() {
        return this.createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getChangedAt() {
        return this.changedAt;
    }

    public void setChangedAt(Date changedAt) {
        this.changedAt = changedAt;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getEdited() {
        return edited;
    }

    public void setEdited(Integer edited) {
        this.edited = edited;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public String getChangedBy() {
        return changedBy;
    }

    public void setChangedBy(String changedBy) {
        this.changedBy = changedBy;
    }

    @Override
    public String toString() {
        return "DrPatientRemarkname [id=" + id + ", doctorId=" + doctorId + ", patientId=" + patientId + ", remarkName=" + remarkName + ", createdAt="
                + createdAt + ", changedAt=" + changedAt + ", gender=" + gender + ", age=" + age + ", phone=" + phone + ", address=" + address
                + ", edited=" + edited + ", createdBy=" + createdBy + ", changedBy=" + changedBy + ", version=" + version + "]";
    }
}
